/**
 * 
 */
package com.coral.fundation.db;

import java.sql.Connection;

import org.apache.commons.dbcp.BasicDataSource;

/**
 * @author Coral
 *
 */
public class SQLiteDataSource {

	public static BasicDataSource ds = getDataSource();
	
	public static BasicDataSource getDataSource() {
		ds = new BasicDataSource();
		ds.setDriverClassName("org.sqlite.JDBC");
		ds.setUrl("jdbc:sqlite:zieckey.db");
		ds.setUsername("admin");
		ds.setPassword("12345");
		return ds;
	}
	
	public static Connection getConnection() throws Exception {
		return ds.getConnection();
	}
	
}
